package cn.itcast.bos.service.action.teke_delivary;

import java.util.Date;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import cn.itcast.bos.domain.page.PageBean;
import cn.itcast.bos.domain.take_delivary.Promotion;

public interface PromotionService {
	// 添加宣传活动信息
	public void save(Promotion promotion);

	// 后台分页查询
	public Page<Promotion> findPageData(Pageable pageable);

	// 前台分页查询
	@Path("/pageQuery")
	@GET
	@Produces({ "application/xml", "application/json" })
	PageBean<Promotion> findPageData(@QueryParam("page") int page, @QueryParam("rows") int rows);

	// 静态页面 的 加载 根据id进行查询
	@Path("/promotion/{id}")
	@GET
	@Produces({ "application/xml","application/json" })
	Promotion findById(@PathParam("id") Integer id);

	//活动过期处理
	public void updateStatus(Date date);




}
